package com.intelligentcar.springboot.mapper;

import com.intelligentcar.springboot.bean.Linelist;
import com.intelligentcar.springboot.bean.Scheduling;
import com.intelligentcar.springboot.bean.Vehicle;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SchedulingMapper {
    //查询线路
    public List<Linelist> selectLine1();
    //通过日期、线路，查询所属车辆
    public List<Vehicle> selectVehicle(Scheduling scheduling);
    //通过日期、线路、车辆 查询选中车辆的未排版的时间
    public List<Scheduling> selectTime(Scheduling scheduling);
    //根据日期和车辆，查询未分配的司机
    public List<Scheduling> selectDrivername(Scheduling scheduling);
    //插入司机排班信息
    public int addScheduling(Scheduling scheduling);
    //查询所有排班信息
    public List<Scheduling> selectScheduling();
}
